import { TYPE } from "./index";
import Base from "./Base";

export default class Slide extends Base {
    constructor(el: HTMLElement) {
        super(el, TYPE.SLIDE)
        this.getMethods(this.setPage);
    }
    private setPage(pageInner: HTMLElement, curIdx: number) {
        // 500 每个元素的宽度
        pageInner.style.transform = `translate3d(${-(curIdx * 500)}px, 0, 0)`;
    }
}